package com.duyj.client.account.feign;

import com.duyj.client.account.model.Account;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("account")
public interface AccountFeignService {

    @PostMapping("/updateAccount")
    void updateAccount(@RequestBody Account account);

    @PostMapping("/putAccount")
    void putAccount(@RequestParam String name);
}
